package br.com.maps.contacts;

import android.content.ContentUris;
import android.net.Uri;
import android.provider.BaseColumns;

public class ExtensionLine {

	private static final String AUTHORITY = "br.com.maps.provider.extensionline";

	private long id = 0;

	private String value;

	public ExtensionLine(long id, String value) {
		this(value);
		this.id = id;
	}

	public ExtensionLine(String value) {
		this.value = value;
	}

	public long getId() {
		return this.id;
	}

	public String getValue() {
		return this.value;
	}

	public static final class ExtensionLineColumns implements BaseColumns {

		public static final String DEFAULT_SORT_ORDER = "_id ASC";

		public static final String ExtensionLine = "value";

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.extensions";

		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.extensions";

		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/extensions");

		public static Uri getUriId(long id) {
			return ContentUris.withAppendedId(ExtensionLineColumns.CONTENT_URI, id);
		}
	}

}
